-- GENERATED SPELL FOR [Magmoth Crusher] --


function spell0_25434(pUnit, Event) --@Magnataur Charge,Self--
pUnit:FullCastSpellOnTarget(50413,pUnit)
pUnit:RegisterEvent('Sorts_25434', 10319, 1)
end

function spell1_25434(pUnit, Event) --@Tusk Strike,n/a--
pUnit:FullCastSpellOnTarget(50410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25434', 622, 1)
end

function Sorts_25434(pUnit, Event)
local choix_sorts_25434 = math.random(0, 1)
if choix_sorts_25434 == 0 then
pUnit:RegisterEvent('spell0_25434', 1, 1)
end
if choix_sorts_25434 == 1 then
pUnit:RegisterEvent('spell1_25434', 1, 1)
end
end

function mob25434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25434', math.random(1500, 3000), 1)
end

function mob25434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25434, 1, 'mob25434_Action')
RegisterUnitEvent(25434, 2, 'mob25434_Leave')
RegisterUnitEvent(25434, 3, 'mob25434_Kill')
RegisterUnitEvent(25434, 4, 'mob25434_Die')
